package TestClasser;
import ModelLayer.InVoice;
import DBLayer.DBInVoice;
import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class DBInVoiceTest{
        
        private DBInVoice dbObject;
        @Before
        public void setUp() throws Exception {
                dbObject = new DBInVoice();
        }

        @After
        public void tearDown() throws Exception {
        }

        @Test
        public void testFindInVoice() {
        		System.out.println("Finder InVoice vha. nummer");
                InVoice InVoiceObject = dbObject.findInVoice(1, false);
                if(InVoiceObject != null)
                {
                		System.out.println(InVoiceObject.getTotalPriceOfSales());
                		System.out.println("");
                }
                else{
                fail("Not yet implemented");
        }
        }
}
       
        	

        	
